#include "stdafx.hpp"
#include "ColligereDatabaseEventBase.hpp"

col::DatabaseEventBase::DatabaseEventBase 
( wxEventType commandType, wxInt32 id, const DatabaseItemBase *pItem ) : 
wxEvent ( id, commandType ), mVetoed ( false ), mpItem ( pItem ), mReqItemId(0),
mReqItemParentId(0)
{
}

DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_REQUEST )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_POST )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_COMMIT_START )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_COMMIT_END )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_ADD )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_CHANGE )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_DELETE )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_QUERIED )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_RESTORE )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_LIST_COMMIT_START )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_LIST_COMMIT_END )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_LIST_QUERY_ALL_START )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_ITEM_LIST_QUERY_ALL_END )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_USER_REQUEST_CLOSE )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_OPEN_END )
DEFINE_EVENT_TYPE ( COLLIGERE_EVT_DATABASE_OPEN_START )

IMPLEMENT_DYNAMIC_CLASS ( col::DatabaseEventBase, wxEvent )